<?php defined('IN_YUNYECMS') or exit('No permission.'); ?><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Document Title -->
    <title><?php echo $seo["title"] ;?></title>
    <meta name="keywords" content="<?php echo $seo["keywords"] ;?>" />
    <meta name="description" content="<?php echo $seo["description"] ;?>" />
    <!-- Favicon -->
    <link rel="shortcut icon" href="<?php echo $lang["icon"] ;?>" />
    <link href="<?php echo YUNYECMS_PUBLIC;?>plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
    <!-- CSS Files -->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/font-awesome.min.css">
    <!--==== Bootstrap css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/bootstrap.min.css">

    <!--==== Swiper css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/swiper.min.css">
    <!--==== Style css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/style.css?2020">
    <!--==== Responsive css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/responsive.css?2020">
    <!--==== Theme Color 1 css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/theme-color-1.css">
    <!--==== Custom css file ====-->
    <link rel="stylesheet" href="<?php echo TPL;?>static/css/custom.css">
</head>

<body>
    <!-- Main header -->
    <!-- End of Main header -->
    <?php include tpl("head"); ?>
    <!-- Page title -->
    <?php 
        if($rootcat["pic"]) :
    ?>
    <section class="page-title-wrap" data-bg-img="<?php echo $rootcat["pic"] ;?>" data-rjs="2">
        <div class="container">
            <div class="row align-items-center">
                <div class="col">
                    <div class="page-title" data-animate="fadeInUp" data-delay="1.05">
                        <h1><?php echo $rootcat["title"] ;?></h1>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <?php 
        endif;
    ?>
    <!-- End of Page title -->
    <div class="breadcumb-wrapper">
        <div class="container">
            <div class="pull-left">
                <ul class="list-inline link-list">
                    <li><a href="/">首页</a></li>
                    </li>
                    <?php $tag_parse = core::load_class('tag_parse');$data=$tag_parse->breadcumb_tag(array('catid'=>$catid));?>
                    <?php if(is_array($data)): $i = -1; $__DATA__ = $data;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                    <?php if($v['id']!=$catid ) { ?>
                    <li><a href="<?php echo $v["url"] ;?>"><?php echo $v["title"] ;?></a></li>
                    <?php } else { ?>
                    <li><span><?php echo $v["title"] ;?></span></li>
                    <?php } ?>
                    <?php  endforeach;  endif; ?>
                    
                </ul>
            </div>
            <div class="float-right">
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!-- Gallery isotope Section -->
    <section class="pt-50 pb-90 default-bg">
        <div class="container">
            <div class="row">
                <!-- Start Side bar widget -->
                <div class="col-lg-3 hidden-mobile">
                    <aside>
                        <!-- start single sidebar widget -->
                        <div class="catebox widget_categories mb-30" data-animate="fadeInUp">
                            <h3 class="category-title"><?php echo $rootcat["title"] ;?> <br /><span></span></h3>
                            <ul>
                                <?php $tag_parse = core::load_class('tag_parse');$data=$tag_parse->cat_tag(array('pid'=>$rootcatid));?>
                                <?php if(is_array($data)): $i = -1; $__DATA__ = $data;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                <li><a href="<?php echo $v["url"] ;?>" <?php if($catid==$v['id']||$rootcatid==$v['id']) echo '
                                        class="active"'; ?>><span class="nav-text"><?php echo $v["title"] ;?></span></a>
                                </li>
                                <?php  endforeach;  endif; ?>
                                
                            </ul>
                        </div>
                        <!-- End of single sidebar widget -->

                        <!-- start single sidebar widget -->
                        <div class="single-sidebar-widget mb-30" data-animate="fadeInUp">
                            <h3 class="h4 font-weight-bold"><?php echo $rootcat["title"] ;?>搜索</h3>
                            <div class="search-form parsley-validate">
                                <form action="<?php echo url('content/index/lists');?>" method="POST">
                                    <input type="hidden" name="catid" value="<?php echo $rootcat["id"] ;?>">
                                    <input type="text" name="searchkey" placeholder="关键词 ..." required
                                        class="theme-input-style">
                                    <button type="submit" class="btn btn-flat btn-primary"><i
                                            class="fa fa-search mr-0"></i></button>
                                </form>
                            </div>
                        </div>
                        <!-- End of single sidebar widget -->
                    </aside>
                </div>
                <!-- End of Side bar widget -->
                <div class="col-lg-9">
                    <div class="blog-wrap">
                        <div class="row">
                            <?php if(is_array($list)): $i = -1; $__DATA__ = $list;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                            <div class="newsli  col-md-12">
                                <a class="db" href="<?php echo $v["url"] ;?>">
                                    <div class="item row">
                                        <div class="<?php if($v['pic']) { ?>col-md-9<?php } else { ?> col-md-12<?php } ?> words">
                                            <div class="name ellipsis-1"><?php echo $v["title"] ;?></div>
                                            <div class="date"><i class="fa fa-clock-o" aria-hidden="true"></i><span>
                                                    <?php echo date("Y-m-d",$v["addtime"]);?></span></div>
                                            <div class="describe ellipsis-2">
                                                <?php  echo
                                                    getsubstr(strip_tags($v["content"]),0,100);?>
                                            </div>
                                        </div>

                                        <?php if($v['pic']) { ?>
                                        <div class="col-md-3">
                                            <div class="img">
                                                <img src="<?php echo $v["pic"] ;?>" alt="<?php echo $v["title"] ;?>">
                                            </div>
                                        </div>
                                        <?php } ?>
                                    </div>
                                </a>
                            </div>
                            <?php  endforeach;  endif; ?>
                        </div>
                        <!-- Start theme pagination -->
                        <ul class="pagination float-right">
                            <?php echo $page;?>
                        </ul>
                        <!-- End of theme pagination -->
                    </div>
                </div>


            </div>
        </div>
    </section>
    <!-- End Of GAllery Isotope Section -->
    <?php include tpl('foot'); ?>
    <!-- JS Files -->
    <!-- ==== JQuery 3.3.1 js file==== -->
    <script src="<?php echo TPL;?>static/js/jquery-3.3.1.min.js"></script>

    <!-- ==== Bootstrap js file==== -->
    <script src="<?php echo TPL;?>static/js/bootstrap.bundle.min.js"></script>

    <!-- ==== JQuery Waypoint js file==== -->
    <script src="<?php echo TPL;?>static/js/jquery.waypoints.min.js"></script>

    <!-- ==== Sticky js file==== -->
    <script src="<?php echo TPL;?>static/js/sticky.min.js"></script>
    <!-- ==== Swiper js file==== -->
    <script src="<?php echo TPL;?>static/js/swiper.min.js"></script>
    <!-- ==== Parsley js file==== -->
    <script src="<?php echo TPL;?>static/js/parsley.min.js"></script>

    <!-- ==== Menu  js file==== -->
    <script src="<?php echo TPL;?>static/js/menu.min.js"></script>

    <!-- ==== Scrippt js file==== -->
    <script src="<?php echo TPL;?>static/js/scripts.js?20190123"></script>

    <!-- ==== Custom js file==== -->
    <script src="<?php echo TPL;?>static/js/custom.js"></script>
</body>

</html>